Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Mar 19, 2025

Various straight-forward code re-organization changes and renames:

  • moved helper functions into util
  • ChangeHotswapResult -> HotswapChange[]
  • shared ClassifiedResourceChanges -> localized ClassifiedChanges
  • NonHotswappableChange -> RejectedChange
  • rejectedChanges -> rejectedProperties cause that's what they are
  • simplified and aligned reportNonHotswappableChange and reportNonHotswappableResource to be non-mutating and only take actually used args

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team March 19, 2025 13:21
@github-actions github-actions bot added the p2 label Mar 19, 2025
@mrgrain mrgrain force-pushed the mrgrain/refactor/code-re-org branch from f878060 to 0cce2f5 Compare March 19, 2025 13:24
@mrgrain mrgrain temporarily deployed to integ-approval March 19, 2025 13:24 — with GitHub Actions Inactive
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 79.85075% with 27 lines in your changes missing coverage. Please review.

Project coverage is 84.82%. Comparing base (4408fb9) to head (0cce2f5).

Files with missing lines Patch % Lines
...s/@aws-cdk/tmp-toolkit-helpers/src/util/objects.ts 34.37% 21 Missing ⚠️
...mp-toolkit-helpers/src/util/string-manipulation.ts 57.14% 3 Missing ⚠️
...aws-cdk/lib/api/deployments/hotswap-deployments.ts 92.85% 2 Missing ⚠️
packages/aws-cdk/lib/api/hotswap/common.ts 97.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #254      +/-   ##
==========================================
- Coverage   85.28%   84.82%   -0.46%     
==========================================
  Files         218      218              
  Lines       36548    36530      -18     
  Branches     4600     4557      -43     
==========================================
- Hits        31170    30988     -182     
- Misses       5232     5396     +164     
  Partials      146      146              
Flag Coverage Δ
suite.unit 84.82% <79.85%> (-0.46%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Mar 19, 2025
Merged via the queue into main with commit 814c45d Mar 19, 2025
20 checks passed
@aws-cdk-automation aws-cdk-automation deleted the mrgrain/refactor/code-re-org branch March 19, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants